package com.ruoyi.bom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.bom.domain.TqlDishBom;
import com.ruoyi.bom.dto.DishBomLockDTO;
import com.ruoyi.bom.dto.DishBomVerifierDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 86198
* @description 针对表【tql_dish_bom(菜品BOM关系表)】的数据库操作Mapper
* @createDate 2024-01-16 15:39:59
* @Entity com.ruoyi.bom.domain.TqlDishBom
*/
public interface TqlDishBomMapper extends BaseMapper<TqlDishBom> {


    List<TqlDishBom> selectTqlDishBomList(Map<String, String> params);

    int insertTqlDishBom(TqlDishBom tqlDishBom);

    int updateTqlDishBom(TqlDishBom tqlDishBom);

    int lockBatch(@Param("id") Long id, @Param("isLock") Integer isLock);

    int checkFoodExistDish(@Param("id") Long id, @Param("foodCode") String foodCode);

    String getFoodName(Long id);

    List<TqlDishBom> selectTqlBomList(Map<String, String> params);

    Long getShopID(@Param("deptCode") String deptCode);

}




